//
//  AppDelegate.m
//  TapHomeApp
//
//  Created by go me on 2022/2/23.
//

#import "AppDelegate.h"

#import "MeViewController.h"
#import "HomeViewController.h"
#import "NewsViewController.h"
#import "HomeBlurManager.h"

@interface AppDelegate ()

@end

@implementation AppDelegate

///程序加载完毕
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    
    HomeViewController *HomeVc = [[HomeViewController alloc] init];
    NewsViewController *NewsVc = [[NewsViewController alloc] init];
    MeViewController *MeVc = [[MeViewController alloc] init];
    
    UITabBarController *tabBarController = [[UITabBarController alloc] init];
    [tabBarController setViewControllers:@[HomeVc,NewsVc,MeVc]];
   
    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:tabBarController];
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    self.window.rootViewController = navigationController;
    [self.window makeKeyAndVisible];
    
    [[HomeBlurManager homeBlurManager] registerToMonitor];
    // Override point for customization after application launch.
    return YES;
}

///程序失去焦：比如按下Home键或有电话信息进来。
- (void)applicationWillResignActive:(UIApplication *)application {
    
    NSLog(@"applicationWillResignActive");
}

///程序重新激活
- (void)applicationDidBecomeActive:(UIApplication *)application {
    
    NSLog(@"applicationDidBecomeActive");
}


@end
